#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#define SIZE 10

void Bubble_size(int arr[], int size)
{
	int i, j, tmp;
	for (i = 0; i < size - 1; i++)
	{
		for (j = 0; j < size - 1 - i; j++)
		{
			if (arr[j] > arr[j + 1])
			{
				tmp = arr[j];
				arr[j] = arr[j + 1];
				arr[j + 1] = tmp;
			}
		}
	}
}
int main()
{
	int arr[SIZE];
	int i = 0;
	for (i = 0; i < SIZE; i++)
	{
		scanf("%d", &arr[i]);
	}
	Bubble_size(arr, SIZE);
	for (i = 0; i < SIZE; i++)
	{
		printf("%d ", arr[i]);
	}
	return 0;
}